body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    color: #1a3a6e;
    font-weight: 600;
}

.navbar-dark {
    background-color: #1a3a6e !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-primary {
    background-color: #1a3a6e;
    border-color: #1a3a6e;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #122947;
    border-color: #122947;
}

.btn-success {
    font-weight: 500;
}

.footer {
    margin-top: auto;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #1a3a6e !important;
}

#medalEvolutionChart,
#medalRankingChart,
#hostPerformanceChart,
#medalHistoryChart,
#sportDominanceChart {
    width: 100%;
    height: 500px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

.sport-bar {
    transition: all 0.3s ease;
}

.bar-label {
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
}

.legend {
    font-size: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
}

.axis text {
    font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
    fill: #666;
    font-size: 12px;
}

.y-axis text {
    font-weight: 500;
}

.axis path,
.axis line {
    stroke: #dedede;
    stroke-width: 1px;
}

.tooltip {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    max-width: 280px;
    z-index: 1000;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
    transition: opacity 0.2s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tooltip h5 {
    margin-top: 0;
    color: #1a3a6e;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
    font-weight: bold;
}

.tooltip p {
    margin: 6px 0;
    line-height: 1.5;
}

.line {
    fill: none;
    stroke-width: 2.5px;
}

.medal-bar {
    transition: all 0.5s ease;
}

.gold-color {
    fill: #ffd700;
    stroke: #e6c100;
}

.silver-color {
    fill: #c0c0c0;
    stroke: #a7a7a7;
}

.bronze-color {
    fill: #cd7f32;
    stroke: #b46d2b;
}

.host-highlight {
    stroke: #ff4500;
    stroke-width: 3px;
}

.play-button {
    cursor: pointer;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    margin: 10px 0;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #e0e0e0;
    border-radius: 4px;
}

input[type=range]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #1a3a6e;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -6px;
    border: 2px solid white;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #e0e0e0;
    border-radius: 4px;
}

input[type=range]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #1a3a6e;
    cursor: pointer;
    border: 2px solid white;
}

@media (max-width: 768px) {
    #medalEvolutionChart,
    #medalRankingChart,
    #hostPerformanceChart,
    #medalHistoryChart,
    #sportDominanceChart {
        height: 400px;
        padding: 15px;
    }

    .col-md-3 {
        margin-bottom: 20px;
    }
    
    .visualization-card {
        min-height: 450px !important;
    }
    
    .bar-label {
        font-size: 10px !important;
    }
    
    .legend text {
        font-size: 10px !important;
    }
}

@media (max-width: 576px) {
    .year-range-container {
        padding: 8px;
    }
    
    #sportDominanceChart {
        height: 350px;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
}

.selected-countries-container {
    margin-top: 10px;
}

.country-tag {
    display: inline-block;
    padding: 5px 10px;
    margin: 4px;
    background-color: #f0f0f0;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.country-tag:hover {
    background-color: #e6e6e6;
}

.country-tag .remove-btn {
    margin-left: 6px;
    cursor: pointer;
    color: #dc3545;
}

.country-tag .remove-btn:hover {
    color: #bd2130;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.25em;
}

.badge {
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 16px;
}

.card-header {
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

#yearRangeLabel {
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 16px;
}

.bi {
    margin-right: 5px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.navbar-dark {
    background-color: #1a3a6e !important;
}

.navbar-brand {
    font-weight: 600;
}

footer {
    background-color: #1a3a6e !important;
}

.card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: none;
}

.card-header {
    font-weight: 600;
    padding: 12px 20px;
}

.bg-primary {
    background-color: #1a3a6e !important;
}

.btn-primary {
    background-color: #1a3a6e;
    border-color: #1a3a6e;
}

.btn-primary:hover {
    background-color: #152d54;
    border-color: #152d54;
}

.visualization-container {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

.tooltip {
    position: absolute;
    background-color: rgba(26, 58, 110, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    pointer-events: none;
    font-size: 12px;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.badge {
    font-weight: 500;
    padding: 5px 10px;
}

.gold-medal {
    background-color: #ffd700;
    color: #333;
}

.silver-medal {
    background-color: #c0c0c0;
    color: #333;
}

.bronze-medal {
    background-color: #cd7f32;
    color: white;
}

.animation-controls {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.custom-range::-webkit-slider-thumb {
    background: #1a3a6e;
}

.custom-range::-moz-range-thumb {
    background: #1a3a6e;
}

.country-flag {
    width: 20px;
    height: 14px;
    margin-right: 5px;
    border: 1px solid #eee;
}

@media (max-width: 768px) {
    .visualization-container {
        min-height: 300px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .lead {
        font-size: 1rem;
    }
} 